﻿using XYS.Service.Core.Models;

namespace XYS.Core.Util;

public static partial class Extention
{
    /// <summary>
    /// 是否激活某个服务
    /// </summary>
    /// <param name="source"></param>
    /// <param name="activateService"></param>
    /// <returns></returns>
    public static bool HasActivateServices(this EnumActivateService source, EnumActivateService activateService) => (activateService & source) == activateService;
}